package com.wen.mall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wen.common.utils.PageUtils;
import com.wen.mall.product.entity.SkuInfoEntity;
import com.wen.mall.product.vo.SkuItemVo;
import lombok.SneakyThrows;

import java.util.List;
import java.util.Map;
import java.util.concurrent.ExecutionException;

/**
 * sku信息
 *
 * @author sheng.W.L
 * @email sunlightcs@gmail.com
 * @date 2022-07-22 13:13:52
 */
public interface SkuInfoService extends IService<SkuInfoEntity> {

  /**
   * 
   * @param  params
   * @return PageUtils
   */
    PageUtils queryPage(Map<String, Object> params);

    void saveSkuInfo(SkuInfoEntity skuInfoEntity);

    PageUtils queryPageByCondition(Map<String, Object> params);

    List<SkuInfoEntity> getSkusBySpuId(Long spuId);

//    @SneakyThrows({ExecutionException.class, InterruptedException.class})
    SkuItemVo item(Long skuId);
}

